package business.nn.c2s.iclass;

import java.util.ArrayList;
import java.util.List;

import jsproto.c2s.cclass.BaseSendMsg;

/**
 * 通知客户端本房间存在比赛分不足的玩家以及等待时间。
 */
@SuppressWarnings("serial")
public class SNN_SportsPointNotEnough extends BaseSendMsg {

    private long roomID;
    private long remainSeconds;
    private List<Long> lackPidList = new ArrayList<>();

    public static SNN_SportsPointNotEnough make(long roomID, long remainSeconds, List<Long> lackPidList) {
        SNN_SportsPointNotEnough ret = new SNN_SportsPointNotEnough();
        ret.setRoomID(roomID);
        ret.setRemainSeconds(remainSeconds);
        if (lackPidList != null) {
            ret.getLackPidList().addAll(lackPidList);
        }
        return ret;
    }

    public long getRoomID() {
        return roomID;
    }

    public void setRoomID(long roomID) {
        this.roomID = roomID;
    }

    public long getRemainSeconds() {
        return remainSeconds;
    }

    public void setRemainSeconds(long remainSeconds) {
        this.remainSeconds = remainSeconds;
    }

    public List<Long> getLackPidList() {
        return lackPidList;
    }

    public void setLackPidList(List<Long> lackPidList) {
        this.lackPidList = lackPidList;
    }
}
